package com.wnx.job.modules.nms.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.wnx.job.common.api.PageResult;
import com.wnx.job.common.api.QueryPageBean;
import com.wnx.job.modules.nms.dto.ArticleAttachmentParam;
import com.wnx.job.modules.nms.model.NmsArticleAttachment;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wangnaixing
 * @since 2021-12-16
 */
public interface NmsArticleAttachmentService extends IService<NmsArticleAttachment> {

    /**
     * 根据文章ID查询文章附件数量
     * @param id
     * @return
     */
    long findCountByArticleId(Long id);

    /**
     * 根据ID查询咨询附件详情
     * @param id
     * @return
     */
    ArticleAttachmentParam findById(Long id);

    /**
     * 分页查询
     * @param queryPageBean
     * @return
     */
    PageResult<ArticleAttachmentParam> findByPage(QueryPageBean queryPageBean);
}
